<?php

include_once 'write_fieldspec.php';

// Guard against entry without a project
	if (!isset($_REQUEST['crudset_id'])  ){
		print 'Please select crud set  first';
		//print "<a href='switchboard.php?project_id=$project_id'> Back to Switchboard</a>";
		exit;
	}


$crudset_id = $_REQUEST['crudset_id'];

$newspec = write_fieldspec($crudset_id);
$newspec = write_fieldspec_to_file($crudset_id);
//echo "<pre>";
//echo $newspec;
//echo "</pre>";
?>
